home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-07-28 | 3.3 KB | 132 lines | [TEXT/MPS ] |
- # Copyright © 1996 by Apple Computer, Inc. All rights reserved.
- # TestWide.Make
- #
- #FILE
- # TestWide.Make
- #
- #NAME
- # Int64Lib
- #
- #DESCRIPTION
- #
- # This file includes the Make instructions to build
- # the test application for the Wide shared code library
- #
- # Supports both MPW 3.3.x (MPW C and PPCC) and MPW 3.4.x (SC and MrC)
- #
- #MODIFICATION HISTORY
- # Created by Terry Teague
- #
- # 18 Jul 96 - TRT - Initial version (created initially by CreateMake tool)
- # 28 Jul 96 - TRT - Modified to use new naming conventions
- #
- #################################################################################################
-
- MAKEFILE = TestWide.make
- •MondoBuild• = {MAKEFILE} # Make blank to avoid rebuilds when makefile is modified
-
- Includes = {Shared.Includes}
- Sources = :Sources:
-
- Sym•PPC =
- ObjDir•PPC = :Objects:
- Sym•68K =
- ObjDir•68K = :Objects:
-
- PPCCOptions = -i "{Includes}" {Sym•PPC}
-
- COptions = -i "{Includes}" {Sym•68K}
-
- Objects•PPC = ∂
- "{ObjDir•PPC}TestWide.c.x"
-
- Objects•68K = ∂
- "{ObjDir•68K}TestWide.c.o"
-
-
- # targets to be overriden by SCMBuild script
- Wide68K = Wide.68K.lib
- WidePPC = Wide.PPC.xcoff
-
- TestWide68K = TestWide.68K
- TestWidePPC = TestWide.PPC
- TestWideFAT = TestWide.FAT
-
- # pseudo targets
- TestWide ƒ {•MondoBuild•} {TestWide68K} {TestWidePPC}
- If {TestWide68K} and {TestWidePPC}
- # Duplicate the PowerPC code into the fat binary package.
- Duplicate -y {TestWidePPC} {TestWideFAT}
- # rez in 'CODE' resources from 68K version. (Brute force method).
- Echo "include ∂"{TestWide68K}∂" 'CODE';" | Rez -a -o {TestWideFAT}
- End
-
- TestWide.PPC.MrC ƒ {•MondoBuild•} TestWide.PPC
-
- TestWide.68K.SC ƒ {•MondoBuild•} TestWide.68K
-
- # real targets
- TestWide.PPC ƒ {•MondoBuild•} {Objects•PPC}
- PPCLink ∂
- -o {TestWidePPC} {Sym•PPC} ∂
- {Objects•PPC} ∂
- # -t 'APPL' ∂
- # -c 'SIOW' ∂
- {WidePPC} ∂
- "{PPCLibraries}PPCSIOW.o" ∂
- "{SharedLibraries}InterfaceLib" ∂
- "{SharedLibraries}StdCLib" ∂
- "{SharedLibraries}MathLib" ∂
- "{PPCLibraries}StdCRuntime.o" ∂
- "{PPCLibraries}PPCCRuntime.o" ∂
- "{PPCLibraries}PPCToolLibs.o"
- Rez -d APPNAME=∂"TestWide∂" -a "{RIncludes}"SIOW.r -o {TestWidePPC}
-
-
- TestWide.68K ƒ {•MondoBuild•} {Objects•68K}
- If "{MPWVersion}" !~ /3.4≈/
- # MPW 3.3.x Libraries are organized differently from those of MPW 3.4.x
- Link ∂
- -o {TestWide68K} {Sym•68K} ∂
- {Objects•68K} ∂
- # -t 'APPL' ∂
- # -c 'SIOW' ∂
- {Wide68K} ∂
- "{CLibraries}Math.o" ∂
- "{CLibraries}CSANELib.o" ∂
- "{CLibraries}StdCLib.o" ∂
- "{Libraries}SIOW.o" ∂
- "{Libraries}Runtime.o" ∂
- "{Libraries}Interface.o"
- Else
- Link ∂
- -o {TestWide68K} {Sym•68K} ∂
- {Objects•68K} ∂
- # -t 'APPL' ∂
- # -c 'SIOW' ∂
- {Wide68K} ∂
- "{Libraries}MathLib.o" ∂
- "{CLibraries}StdCLib.o" ∂
- "{Libraries}SIOW.o" ∂
- "{Libraries}MacRuntime.o" ∂
- "{Libraries}IntEnv.o" ∂
- "{Libraries}Interface.o"
- End
- Rez -a "{RIncludes}"SIOW.r -o {TestWide68K}
-
-
- "{ObjDir•PPC}TestWide.c.x" ƒ {•MondoBuild•} {Sources}TestWide.c ∂
- {Includes}Wide.h
- If "{MPWVersion}" !~ /3.4≈/
- # old PPCC compiler requires Apple Extensions option to be on
- {PPCC} {Sources}TestWide.c -o {Targ} {PPCCOptions} -appleext on
- Else
- {PPCC} {Sources}TestWide.c -o {Targ} {PPCCOptions}
- End
-
-
- "{ObjDir•68K}TestWide.c.o" ƒ {•MondoBuild•} {Sources}TestWide.c ∂
- {Includes}Wide.h
- {C} {Sources}TestWide.c -o {Targ} {COptions}
-
-